﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ObraListForm.aspx.cs" Inherits="UILGestion.Admin.Obras.ObraListForm" %>

<%@ Register Assembly="CustomControls" Namespace="CustomControls" TagPrefix="cc2" %>

<%@ Register src="../../Control/menuCtrl.ascx" tagname="menuCtrl" tagprefix="uc1" %>
<%@ Register Assembly="ExtAspNet" Namespace="ExtAspNet" TagPrefix="ext" %>
<%@ Register assembly="WebLib" namespace="WebLib" tagprefix="cc1" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
<%@ Register src="ObraListGrid.ascx" tagname="ObraListGrid" tagprefix="uc2" %>

<%--needed for WebMethods--%>
<%@ Import Namespace="System.Web.Script.Services" %>
<%@ Import Namespace="System.Web.Services" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
 <link href="../css/main.css" rel="stylesheet" type="text/css" />
    <title></title>
    <link href="../../resources/css/main.css" rel="stylesheet" type="text/css" />
    
    <link rel="stylesheet" type="text/css" href="../../estilos/_common/styles/fonts.css" />
 <link rel="stylesheet" type="text/css" href="../../estilos/_common/styles/global.css" />
 <link rel="stylesheet" type="text/css" href="../../estilos/_common/styles/theme.css" />
</head>
<body>
    <form id="form1" runat="server">
    <uc1:menuCtrl ID="menuCtrl1" runat="server" />


    <asp:ToolkitScriptManager ID="ToolkitScriptManager2" runat="server" 
     EnablePartialRendering="true" />
  
  <asp:Panel ID="Panel2" runat="server"
  CssClass="Heading secTitle AreaHeading ms-crm-List-Header">
  <asp:Label ID="Label2" runat="server" Text="LISTAS OBRAS" style="font-size: large; color: #960818"></asp:Label>
 </asp:Panel>
  
 <asp:Panel ID="PanelButtom" runat="server"
  BackColor="white">
 
    
 
     
 
     <table  >
          <tr>
              <td >
              <table>
                          <tr align="right">
 <td  width="100px">Empresa:</td>
                    <td>
                       
                        <cc2:DropDownCC ID="empresaDDL" runat="server" AutoPostBack="True"  
                            Width="320px" onselectedindexchanged="empresaDDL_SelectedIndexChanged">
                        </cc2:DropDownCC>
                               

</td>
 <td>&nbsp;</td>
                    <td>&nbsp;</td>
                 </tr>
                          <tr align="right">
                              <td>
                                  Proyecto:</td>
                              <td>
                                  <cc2:DropDownCC ID="proyectoDropDownList" runat="server" AutoPostBack="True" 
                                      Width="320px">
                                  </cc2:DropDownCC>
                              </td>
                              <td>
                              </td>
                              <td>
                                  &nbsp;</td>
                          </tr>
                          <tr>
                              <td>
                                  &nbsp;</td>
                              <td>
                                  &nbsp;</td>
                              <td>
                                  <asp:Button ID="refreshButton" runat="server" CssClass="ms-crm-List-Header" 
                                       onclick="actualizarButton_Click" Text="Actualizar" 
                                      Width="70" />
                              </td>
                              <td>
                                  <asp:Button ID="nuevoButton" runat="server" CssClass="ms-crm-List-Header" 
                                       onclick="nuevoButton_Click" Text="Nuevo" />
                              </td>
                          </tr>
              </table>
             </td>
         <td>
 
 
         
                  &nbsp;</td>
          </tr>
      </table>
            
  <hr />
     <input id="idObra" name="idObra" type="hidden" runat="server" />
     <input id="findNivel" name="findNivel" type="hidden" runat="server" />
     <input id="findValor" name="findValor" type="hidden" runat="server" />
     <input id="findIdValor" name="findIdvalor" type="hidden" runat="server" />

       <uc2:ObraListGrid ID="ObraListGrid1" runat="server" DataSourceID="ObraListODS" />
        <asp:ObjectDataSource ID="ObraListODS" runat="server" EnablePaging="True" 
               SelectCountMethod="Count" SelectMethod="GetObraList" 
               SortParameterName="sortExpression" TypeName="BOL.ObraBL">
               <SelectParameters>
                   <asp:ControlParameter Name="idProyecto"   ControlID="proyectoDropDownList"    PropertyName="SelectedValue"/>
                   <asp:Parameter Name="startRowIndex" Type="Int32" />
                   <asp:Parameter Name="maximumRows" Type="Int32" />
                   <asp:Parameter Name="sortExpression" Type="String" />
               </SelectParameters>
           </asp:ObjectDataSource>

       </asp:Panel>
   


  
    </form>
</body>
</html>
